package org.tc.platform.service;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.platform.entity.Managers;

import java.util.List;

@RequestMapping("/ManagersService")
public interface ManagersService {

    @PostMapping("/deleteByPrimaryKey")
    int deleteByPrimaryKey(@RequestParam("id") Integer id);

    @PostMapping("/insert")
    int insert(@RequestBody Managers record);

    @PostMapping("/selectByPrimaryKey")
    Managers selectByPrimaryKey(@RequestParam("id") Integer id);

    @PostMapping("/selectAll")
    List<Managers> selectAll();

    @PostMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(@RequestBody Managers record);

    @PostMapping("/Login")
    Managers Login(@RequestBody Managers managers);

    @RequestMapping("/QueryAllManagers")
    List<Managers> QueryAllManagers();

}
